﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;

namespace blackhouse.WebNemo.Web.Controls {
	public class FileDisplayRecordValue : DisplayRecordValue {

		#region Fields

		private Image display;

		#endregion

		#region Properties

		private Image DisplayControl {
			get {
				if (this.display == null) {
					this.display = new Image();
					this.Controls.Add(this.display);
				}
				return display;
			}
		}

		#endregion

		#region Methods

		protected override void PopulateControl() {
			this.DisplayControl.ImageUrl = record.GetImageUrl(column.ColumnName, new System.Drawing.Size(300, 300));
		}

		#endregion

	}
}